package com.um.jdy.platform.platform.entity.dto;

import com.um.springboot.starter.orm.params.PageDTO;
import com.um.springboot.starter.orm.params.PageParams;
import lombok.Data;

/**
 * @author 邓南辉
 * 日期 2023/11/19
 * 版权所有 广州优匠科技有限公司
 */
@Data
public class CompanyUserLogPageDTO extends PageDTO {

    private String userNo;
    private String userName;
    private String beginTime;
    private String endTime;

    @Override
    public PageParams toPageParams() {
        PageParams pageParams = toPageParams(
                new String[]{"userNo", "userName"},
                new String[]{"user_no", "user_name"},
                "login_date", "beginTime", "endTime");
        pageParams.getCondition().put("orderby", "login_date desc");
        return pageParams;
    }
}
